package com.njwb.day03;

import java.util.Arrays;

public class m {
    public static void main(String[] args) {
        // 初始数组
        int[] fixedArray ={1,2,3,4,5};


// 扩展数组
        int[] newArray = new int[4];
    System.arraycopy(fixedArray,1,newArray,1,3);
        System.out.println(Arrays.toString(fixedArray));
        System.out.println(Arrays.toString(newArray));
    }
}
